﻿<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns="http://Microsoft.ConnectionEngine/Schemas/ServiceProviderRegister" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://Microsoft.ConnectionEngine/Schemas/ServiceProviderRegister" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="request" nillable="true">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="UserCredentials" type="UserCredentials" minOccurs="1" maxOccurs="1"></xs:element>
        <xs:element name="ServiceProviderSearchRequest" type="ServiceProviderSearchRequest" minOccurs="1" maxOccurs="1"></xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="UserCredentials">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="UserName" type="xs:string"></xs:element>
      <xs:element minOccurs="1" maxOccurs="1" name="Password" type="xs:string"></xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="ServiceProviderSearchRequest">
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="1" name="InPool" type="xs:boolean" />
        <xs:element minOccurs="0" maxOccurs="1" name="DisplayName" type="xs:string" />
        <xs:element minOccurs="0" maxOccurs="1" name="PoolID" type="xs:string" />
        <xs:element minOccurs="0" maxOccurs="1" name="ServiceProviderType" type="xs:string" />        
      </xs:sequence>
  </xs:complexType>                    

</xs:schema>